import type { APPOpenBuyLinkReqData, APPUserInfo } from '@/types/app'
import { closeAppPage, getAPPUserInfo, openAppBuyLink, openAppLoginPage } from '../entities/app'

export class AppModel {
  // 获取APP用户信息
  async getAPPUserInfo(): Promise<APPUserInfo> {
    return await getAPPUserInfo()
  }
  // 打开APP购买链接
  async openAppBuyLink(params: APPOpenBuyLinkReqData): Promise<void> {
    return await openAppBuyLink(params)
  }
  // 打开APP登录页
  async openAppLoginPage(): Promise<void> {
    return await openAppLoginPage()
  }
  // 关闭页面
  async closeAppPage(): Promise<void> {
    return await closeAppPage()
  }
}
